package com.shop.cereshop.app.dl.logic.domain;

import com.shop.cereshop.commons.domain.product.CereProductImage;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class CereShopProduct implements Serializable {
    private List<CereProductImage> productImages;

    public List<CereProductImage> getProductImages() {
        return productImages;
    }

    public void setProductImages(List<CereProductImage> productImages) {
        this.productImages = productImages;
    }

    private CereProductSku productSku;

    public CereProductSku getProductSku() {
        return productSku;
    }

    public void setProductSku(CereProductSku productSku) {
        this.productSku = productSku;
    }

    private Long productId;

    private Long shopId;
    private Long sort;

    public Long getSort() {
        return sort;
    }

    public void setSort(Long sort) {
        this.sort = sort;
    }

    private String productName;
    private String purchaseNotes;

    private String productBrief;

    private Long shopGroupId;

    private Long classifyId;

    private Long supplierId;

    private String supplierName;

    private Boolean ifLogistics;

    private Boolean shelveState;

    private Boolean ifOversold;

    private String createTime;

    private String updateTime;

    private String productText;
    private Long productNo;
    private Integer recommendedMark;
    private String touristRoute;

    public String getTouristRoute() {
        return touristRoute;
    }

    public void setTouristRoute(String touristRoute) {
        this.touristRoute = touristRoute;
    }

    public Long getProductNo() {
        return productNo;
    }

    public void setProductNo(Long productNo) {
        this.productNo = productNo;
    }

    public Integer getRecommendedMark() {
        return recommendedMark;
    }

    public void setRecommendedMark(Integer recommendedMark) {
        this.recommendedMark = recommendedMark;
    }

    private static final long serialVersionUID = 1L;


    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName == null ? null : productName.trim();
    }

    public String getProductBrief() {
        return productBrief;
    }

    public void setProductBrief(String productBrief) {
        this.productBrief = productBrief == null ? null : productBrief.trim();
    }

    public Long getShopGroupId() {
        return shopGroupId;
    }

    public void setShopGroupId(Long shopGroupId) {
        this.shopGroupId = shopGroupId;
    }

    public Long getClassifyId() {
        return classifyId;
    }

    public void setClassifyId(Long classifyId) {
        this.classifyId = classifyId;
    }

    public Long getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Long supplierId) {
        this.supplierId = supplierId;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName == null ? null : supplierName.trim();
    }

    public Boolean getIfLogistics() {
        return ifLogistics;
    }

    public void setIfLogistics(Boolean ifLogistics) {
        this.ifLogistics = ifLogistics;
    }

    public Boolean getShelveState() {
        return shelveState;
    }

    public void setShelveState(Boolean shelveState) {
        this.shelveState = shelveState;
    }

    public Boolean getIfOversold() {
        return ifOversold;
    }

    public void setIfOversold(Boolean ifOversold) {
        this.ifOversold = ifOversold;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime == null ? null : createTime.trim();
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime == null ? null : updateTime.trim();
    }

    public String getProductText() {
        return productText;
    }

    public void setProductText(String productText) {
        this.productText = productText == null ? null : productText.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", productId=").append(productId);
        sb.append(", shopId=").append(shopId);
        sb.append(", productName=").append(productName);
        sb.append(", productBrief=").append(productBrief);
        sb.append(", shopGroupId=").append(shopGroupId);
        sb.append(", classifyId=").append(classifyId);
        sb.append(", supplierId=").append(supplierId);
        sb.append(", supplierName=").append(supplierName);
        sb.append(", ifLogistics=").append(ifLogistics);
        sb.append(", shelveState=").append(shelveState);
        sb.append(", ifOversold=").append(ifOversold);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", productText=").append(productText);
        sb.append("]");
        return sb.toString();
    }
}